﻿using DotNetMVC.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DotNetMVC.Website
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            //错误处理
            //filters.Add(new HandleErrorAttribute());
            filters.Add(new ResetHandleErrorAttribute());

            //Json.Net 
            filters.Add(new JsonNetActionFilter());
        }
    }
}